// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PUR_PRODUCT_PURCHASE
// * CreateDate    : 2011/8/16 10:16:41
// * Creater       : CodeSmith
// * LastChangeDate: 2011/8/16 10:16:41
// * LastChanger   : 2011/8/16 10:16:41
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class PurProductPurchaseEntity : EntityBase
    {
        public PurProductPurchaseTable TableSchema
        {
            get
            {
                return PurProductPurchaseTable.Current;
            }
		}
		
		public PurProductPurchaseEntity()
        {

        }
		
		public PurProductPurchaseEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.PlanOrderId = Convert.ToString(CommonFunctions.ToObject(dr["PLAN_ORDER_ID"]));
			this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
        }
		
		public PurProductPurchaseEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.PlanOrderId = Convert.ToString(CommonFunctions.ToObject(dr["PLAN_ORDER_ID"]));
			this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return PurProductPurchaseTable.Current;
            }
        }
		
		#region Perporty List
        public string PlanOrderId
        {
            get { return Convert.ToString(GetData(PurProductPurchaseTable.C_PLAN_ORDER_ID)); }
            set { SetData(PurProductPurchaseTable.C_PLAN_ORDER_ID, value); }
        }
		
        public string ApplicationId
        {
            get { return Convert.ToString(GetData(PurProductPurchaseTable.C_APPLICATION_ID)); }
            set { SetData(PurProductPurchaseTable.C_APPLICATION_ID, value); }
        }
		
		#endregion
	}
	
	
}	

